﻿@using HotelManageSystem.Models
@{
    
    Layout = "~/Views/Shared/_Template2.cshtml";
}
@section Head {
    <style type="text/css">
        .employee-details ul
        {
            list-style: none;
            font-style: italic;
            margin-left: 80px;
            margin-bottom: 20px;
        }
        .employee-details img
        {
            border: 1px solid #05679D;
            float: left;
        }
        .employee-details label
        {
            display: inline-block;
            width: 90px;
            font-style: normal;
            font-weight: bold;
        }
    </style>
}
<br />
<div style="font-size: 26px; color: red" align="center">
    <li>历史信息</li>
</div>
@{
    Html.Telerik()
           .Grid<HotelingHistoryInfoModel>()
           .Name("HotelingHistory")
           .Columns(columns =>
                           {
                               columns.Bound(e => e.ID).Width(200).Title("历史编号").HtmlAttributes(new { style = "text-align:center" });
                               columns.Bound(e => e.RoomID).Width(100).Title("房间编号").HtmlAttributes(new { style = "text-align:center" });
                               //columns.Bound(e => e.ClientID).Width(200).Title("客户编号").HtmlAttributes(new { style = "text-align:center" });
                               columns.Bound(e => e.CertID).Width(140).Title("身份证号").HtmlAttributes(new { style = "text-align:center" });
                               columns.Bound(e => e.PresonNum).Width(60).Title("人数").HtmlAttributes(new { style = "text-align:center" });
                               columns.Bound(e => e.EntetTime).Width(160).Title("进入时间").HtmlAttributes(new { style = "text-align:center" }).Format("{0:yyyy-MM-dd hh:mm}");
                               columns.Bound(e => e.OutTime).Width(160).Title("退房时间").HtmlAttributes(new { style = "text-align:center" }).Format("{0:yyyy-MM-dd hh:mm}");

                           })
           .DataBinding(dataBinding => dataBinding.Ajax().Select("TelerikAjax", "HotelingHistory"))
           .Pageable(paging => paging.PageSize(6))
           .Scrollable(scrolling => scrolling.Height(400))
           .Sortable()
           .Filterable()
           .Render();
}
